<ui:composition template="/resources/plantillas/plantilla-centro-relevo.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	
	<ui:param name="nav" value="/resources/plantillas/navAdministrador.xhtml" />
	
	<ui:define name="principal">
		<h:form>
			<h2>Gestión de Parametros</h2>
			<rich:accordion switchType="client">
	            <rich:accordionItem header="Conexion a dispositivo movil:">
					<rich:panel id="panelMovil">
					<fieldset>
											
						<h:outputLabel value="IP:" for="itip"/>
						<h:inputText  id="itip" value="#{parametrosBean.ipMovilValue}" required="true"/>
						<rich:message for="itip"/>
						
						<h:outputLabel value="Puerto:" for="itpuerto" />
						<h:inputText id="itpuerto" value="#{parametrosBean.puertoMovilValue}" required="true"/>
						<rich:message for="itpuerto"/>
					</fieldset>
					<h:commandButton value="Guardar" action="#{parametrosBean.guardar()}" >
						<f:ajax execute="panelMovil" render="panelMovil"/>
					</h:commandButton>
					</rich:panel>
					
					
	 			</rich:accordionItem>
	 			<rich:accordionItem header="Overview:">
	 				<ui:include src="/p_administrador/gestion-imagenes.xhtml" />
	 			</rich:accordionItem>
	 		</rich:accordion>
		</h:form> 	

	</ui:define>
	
	
</ui:composition>
